<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ie.css" media="screen, projection" />
	
	<![endif]-->
	
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/form.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery-ui.css" />     
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ddsmoothmenu.css" />	        
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery.ui.tabs.css" />        
	<script src='http://code.jquery.com/jquery-1.9.1.min.js'></script>
	<script src='<?php echo Yii::app()->theme->baseUrl; ?>/js/fancybox/jquery.elevateZoom-2.5.3.min.js'></script>	
	<script src='<?php echo Yii::app()->theme->baseUrl; ?>/js/fancybox/jquery.fancybox.js'></script>


	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<div id="header">
		<div class="logo">
		</div>
		<div class="logo_online">
		</div>
		<div class="login">
		<div class="users-box">
		<?php if(!Yii::app()->user->isGuest):?>
		<span>Xin chào <a style="color: #000" href="<?php echo Yii::app()->createUrl('/user/profile/edit', array('id'=>Yii::app()->user->id));?>"><?php echo Yii::app()->user->name;?></a> | <a href="<?php echo Yii::app()->createUrl('/user/logout');?>">Thoát</a></span>
		<?php else:?>
		<a href="<?php echo Yii::app()->createUrl('/user/registration');?>">Đăng ký</a> | <a href="<?php echo Yii::app()->createUrl('/user/login');?>">Đăng nhập</a>
		<?php endif;?></div>		
		</div>
		<div class="search">
			<?php $this->widget('application.widgets.searchProduct.searchProduct');?>
		</div>            
</div> 
<div id="wr-page">                     
	<div class="wrr-menu">                     
                <?php $this->widget('Header'); ?>                		
	</div>
	<div class="main-body">	        
	<?php if(isset($this->breadcrumbs)):?>
		<div class="brc"><div class="brc2">
		<?php $this->widget('zii.widgets.CBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
		</div>
		</div>
	<?php endif?>
	
	<?php
	echo $content; ?>	
	</div>
	<div class="clear"></div>            
	</div>
	<div class="clear"></div>
<div id="footer">
		<div class="wr-footer">
			<div class="info">
				<p class="name">Công ty </p>
				<p>Địa chỉ: </p>
				<p>Điện thoại: </p>
				<p>© Copyright 2013-2014  . All Rights Reserved</p>
			</div>
			<div class="services">
				<p class="name" style="margin: 5px;">DỊCH VỤ KHÁCH HÀNG</p>
				<ul>
					<li><a href="#">Chính sách bán hàng</a></li>
					<li><a href="#">Hình thức thanh toán</a></li>
					<li><a href="#">Chính sách bảo hành</a></li>
				</ul>
			</div>
		</div>
	</div>
</body>
</html>
